<%-- 
    Document   : dc_show
    Created on : 2011-12-10, 11:26:59
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>案例地图</title>
        <link rel="shortcut icon" href="${pageContext.request.contextPath}/images/dan.ico"></link>
        <link href="${pageContext.request.contextPath}/css/cont.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.1.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/cont_title.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/swfobject/swfobject.js"></script> 

        <script type="text/javascript" src="${pageContext.request.contextPath}/js/flexpaper_flash.js"></script>
        <script>
            function loadflash(filename)
            {
                
                var swfVersionStr = "9.0.124";
                var xiSwfUrlStr = "${pageContext.request.contextPath}/js/FlexPaperViewer.swf";
                var flashvars = { 
                    //                 SwfFile : escape("${pageContext.request.contextPath}/doc/3.swf"),
                    SwfFile : escape("${pageContext.request.contextPath}/upload/document/"+filename.split(".")[0]+".swf"),
                    Scale : 0.6, 
                    ZoomTransition: "linear",  
                    ZoomTime: "greater",  
                    ZoomInterval: 0.1,  
                    FitPageOnLoad: false,  
                    FitWidthOnLoad: false,  
                    PrintEnabled: true,  
                    FullScreenAsMaxWindow: false,  
                    ProgressiveLoading: false,  
       
                    PrintToolsVisible: true,  
                    ViewModeToolsVisible: true,  
                    ZoomToolsVisible: true,  
                    FullScreenVisible: true,  
                    NavToolsVisible: true,  
                    CursorToolsVisible: true,  
                    SearchToolsVisible: false,  
                    localeChain: "zh_CN"  
                };
                var params = {
					
                }
                params.quality = "high";  
                params.bgcolor = "#ffffff";  
                params.allowscriptaccess = "sameDomain";  
                params.allowfullscreen = "true";  
                var attributes = {};  
                attributes.id = "FlexPaperViewer";  
                attributes.name = "FlexPaperViewer";  
                swfobject.embedSWF(
                "${pageContext.request.contextPath}/js/FlexPaperViewer.swf", "swfid", 
                "600", "500", 
                swfVersionStr, xiSwfUrlStr, 
                flashvars, params, attributes);
                swfobject.createCSS("#swfid", "display:block;text-align:center;");
                
                
                
                
            }
            
            function  show(filename,titlename)
            {
//                alert(titlename);
//                loadflash(filename);
                document.getElementById("xq").style.display=""
                document.getElementById("showlist").style.display="";
                document.getElementById("cont_title_nav1").innerHTML=titlename;
                
                
            }
        </script>
    </head>
    <body>
        <div class="page">
            <s:include value="/top.jsp"/>


            <!--首页开始-->

            <!--   <div class="lb_select_huitui">首页 &gt;&gt; 产品目录 &gt;&gt; 工业设备及组件 &gt;&gt; 净化过滤和水处理设备 &gt;&gt; 过滤机，过滤器</div>-->
            <div class="lb_cont">
                <div class="cont_title">
                    <ul>
                        <li id="cont_title_nav0">单证地图</li>
                        <div id="xq" style="display:none">
                            <li id="cont_title_nav1">案例单证详情</li>
                        </div>

                    </ul>
                </div>
                <div class="cont_cont">
                    <div class="cont_cont_0"> 
                        <table width="100%" height="100%" border="0"  align="center" cellpadding="2" cellspacing="1">          
                            <tr>
                                <td width="15%" bgcolor="#b5d6e6" align="right" >案例编号</td>
                                <td width="35%" align="center" bgcolor="#EBF4F5"><s:property value="ca.code"/></td>
                                <td width="15%" bgcolor="#b5d6e6" align="right">案例名称</td>
                                <td width="35%" align="center" bgcolor="#EBF4F5"><s:property value="ca.name"/></td>
                            </tr>
                            <tr>
                                <td bgcolor="#b5d6e6"  align="right">采购国</td>
                                <td align="center" bgcolor="#EBF4F5"><s:property value="ca.countryName"/></td>

                                <td bgcolor="#b5d6e6"  align="right">产品</td>
                                <td align="center" bgcolor="#EBF4F5"><s:property value="ca.productName"/></td>
                            </tr>   
                             <tr>
                                <td bgcolor="#b5d6e6"  align="right">业务时间</td>
                                <td align="center" bgcolor="#EBF4F5"><s:property value="ca.time"/></td>

                                <td bgcolor="#EBF4F5"  align="right">&nbsp</td>
                                <td align="center" bgcolor="#EBF4F5">&nbsp</td>
                            </tr>                
                            <tr>
                                <td bgcolor="#b5d6e6"  align="right">案例解析和备注</td>
                                <td colspan="3"  align="center" bgcolor="#EBF4F5"><s:property value="ca.fillSummy"/></td>
                            </tr>
                        </table>
                   
                       <!-- <table width="100%" border="0" align="center" cellpadding="0"
                               cellspacing="1" >
                            <tr>
                                <td height="22" colspan="7" align="center"
                                    background="../images/main20100521_58.gif" class="alllisttitle">
                                    单证清单
                                </td>
                            </tr>
                            <tr bgcolor="#b5d6e6">
                                <td height="22" align="center"
                                    background="../images/main20100521_58.gif" class="alllisttitle">
                                    单证编号
                                </td>
                                <td align="center" background="../images/main20100521_58.gif"
                                    class="alllisttitle">
                                    单证名称
                                </td>
                                <td align="center" background="../images/main20100521_58.gif"
                                    class="alllisttitle">
                                    单证格式名称
                                </td>
                                <td align="center" background="../images/main20100521_58.gif"
                                    class="alllisttitle">
                                    产品
                                </td>
                                <td align="center" background="../images/main20100521_58.gif"
                                    class="alllisttitle">
                                    采购国
                                </td>      
                                <td align="center" background="../images/main20100521_58.gif"
                                    class="alllisttitle">
                                    案例解析和备注
                                </td>

                                <td align="center" background="../images/main20100521_58.gif"
                                    class="alllisttitle">
                                    进入
                                </td>           

                            </tr>
                            <s:iterator value="ca.documents" var="dc" status="stat">
                                <tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='#e3f0f7'"
                                    onMouseOut="this.bgColor='#FFFFFF'">

                                    <td align="center" class="zczb_qua">
                                        ${code}
                                    </td>
                                    <td align="center" class="zczb_qua">
                                        ${name}
                                    </td>                    
                                    <td align="center" class="zczb_qua">
                                        ${typename}
                                    </td>
                                    <td align="center" class="zczb_qua">
                                        ${productName}
                                    </td>
                                    <td align="center" class="zczb_qua">
                                        ${countryName}</td>

                                    <td align="center" class="zczb_qua">
                                        ${experience}
                                    </td>

                                    <td align="center">
                                        <a href="#"
                                           onclick="show('','${name}')">
                                            案例地图</a>
                                    </td>      
                                </tr>
                            </s:iterator>
                        </table>  -->
                        
                        <div class="lb_cont">
                   	 <s:iterator value="ca.documents" var="dc" status="u">
                         <div class="lb_cont_1">
                            <div class="lb_cont_1_left">
                                <ul>
                                    <li class="lb_cont_1_li1"><a href="#">单证名称：${dc.name}</a><font>&nbsp;&nbsp; 单证编号：${dc.code}</font><font>&nbsp;&nbsp; 单证格式名称：${dc.typename}</font></li>
                                    <li>案例要点和解析：${dc.experience} &nbsp;&nbsp;&nbsp;</li>

                                    <li class="lb_cont_1_li2">采购国：${dc.countryName}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 产品：${dc.productName}</li>
                                </ul>
                            </div>
                                 <div class="lb_cont_1_right">
                                  <a href="#"
                                           onclick="show('','${name}')"><img src="${pageContext.request.contextPath}/images/lb_ent.jpg"/> </a></div>
                                   <!-- <div class="lb_cont_1_right"><img onclick="window.open('${pageContext.request.contextPath}/documentCase/dcshow.action?caseId=${dc.id}', 'newwindow');" src="${pageContext.request.contextPath}/images/lb_ent.jpg"/></a></div>-->
                                </div>
                                 
                   	 </s:iterator>        
                     </div>  

                    </div>

                    <div class="cont_cont_1" style="display:none" id="showlist">    
                        <table>

                            <s:iterator value="accessoryList" var="accesory" status="u">
                                    <tr>
                                        <td> <a href="down.action?dlFileName=<s:property value='name'/>"><strong>点击下载</strong></a></td>


                                    </tr>
                                    <script type="text/javascript">
                                        //            swfobject.embedSWF("/doc/3.swf", "swfid", "300", "120", "9.0.0", "/js/swfobject/expressInstall.swf"); 
                                        //            var swfname=<s:property value="truename"/>.split(".")[0]+"swf";
                                        var swfname="<s:property value='name'/>";
                             
//                                        alert(swfname.split(".")[0]);
                                        var swfVersionStr = "9.0.124";
                                        var xiSwfUrlStr = "${pageContext.request.contextPath}/js/FlexPaperViewer.swf";
                                        var flashvars = { 
                                            //                 SwfFile : escape("${pageContext.request.contextPath}/doc/3.swf"),
                                            SwfFile : escape("${pageContext.request.contextPath}/upload/document/"+swfname.split(".")[0]+".swf"),
                                            Scale : 0.6, 
                                            ZoomTransition: "linear",  
                                            ZoomTime: "greater",  
                                            ZoomInterval: 0.1,  
                                            FitPageOnLoad: false,  
                                            FitWidthOnLoad: false,  
                                            PrintEnabled: true,  
                                            FullScreenAsMaxWindow: false,  
                                            ProgressiveLoading: false,  
       
                                            PrintToolsVisible: true,  
                                            ViewModeToolsVisible: true,  
                                            ZoomToolsVisible: true,  
                                            FullScreenVisible: true,  
                                            NavToolsVisible: true,  
                                            CursorToolsVisible: true,  
                                            SearchToolsVisible: false,  
                                            localeChain: "zh_CN"  
                                        };
                                        var params = {
					
                                        }
                                        params.quality = "high";  
                                        params.bgcolor = "#ffffff";  
                                        params.allowscriptaccess = "sameDomain";  
                                        params.allowfullscreen = "true";  
                                        var attributes = {};  
                                        attributes.id = "FlexPaperViewer";  
                                        attributes.name = "FlexPaperViewer";  
                                        swfobject.embedSWF(
                                        "${pageContext.request.contextPath}/js/FlexPaperViewer.swf", "swfid${u.index}", 
                                        "600", "500", 
                                        swfVersionStr, xiSwfUrlStr, 
                                        flashvars, params, attributes);
                                        swfobject.createCSS("#swfid${u.index}", "display:block;text-align:center;");
                                    </script>

                                    <tr><td><div id="swfid${u.index}" ></div></td> </tr>    
                                </s:iterator>
                        </table>          
                    </div>

                </div>

            </div>  <s:include value="/bottom.jsp"/>
        </div>
        <!--首页结束-->


    </div>
</body>
</html>
